# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
_pkgname=django-reversion
pkgname="py3-$_pkgname"
pkgver=4.0.0
pkgrel=4
pkgdesc="Extension to the Django web framework that provides version control for model instances"
url="https://github.com/etianen/django-reversion"
arch="noarch"
license="BSD-3-Clause"
depends="
	py3-django
"
makedepends="py3-setuptools_scm"
checkdepends="
	py3-psycopg2
"
options="!check" # test suite expects module to be installed during tests
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/d/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 tests/manage.py test tests
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
f7290cc9f978a927549bb7f536027d2787721c931a10567df7f610f74d2d2f4d4a9e31862f826651bdf99db769e9a2722a8a498763b1bb2b4477dd572893aac2  django-reversion-4.0.0.tar.gz
"
